<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="./favicon.ico">

    <title>学并思留言板(测试版)</title>

    <!-- Bootstrap core CSS -->
    <link href="./template/css/bootstrap.min.css" rel="stylesheet">
    <!-- Bootstrap theme -->
    <link href="./template/css/bootstrap-theme.min.css" rel="stylesheet">

    <link rel="stylesheet" href="./template/css/main.css">

    <!-- Custom styles for this template -->


    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body role="document">

    <!-- Fixed navbar -->
    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">学并思留言板</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li role="presentation"><a href="#">留言数量 <span class="badge"><?php echo count($db) ?></span></a></li>
            <li><a href="./login.php">登录</a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>

    <div class="container theme-showcase" role="main">
        <div class="row">
            <div class="site-login">
            <h1>登录</h1>
            <form id="login-form" class="form-horizontal" action="./login.php" method="post">
                <div class="form-group field-loginform-email required has-success">
                  <label class="col-lg-1 control-label" for="loginform-email">用户名</label>
                    <div class="col-lg-3"><input type="text" id="loginform-email" class="form-control" name="username"></div>
                  <div class="col-lg-8"><p class="help-block help-block-error"></p></div>
                </div>
                <div class="form-group field-loginform-password required has-success">
                <label class="col-lg-1 control-label" for="loginform-password">登录密码</label>
                <div class="col-lg-3"><input type="password" id="loginform-password" class="form-control" name="passwd"></div>
                <div class="col-lg-8"><p class="help-block help-block-error"></p></div>
                </div>
                <div class="form-group field-loginform-rememberme">
                <div class="col-lg-offset-1 col-lg-3"><input type="hidden" name="rememberMe" value="0"><input type="checkbox" id="loginform-rememberme" name="rememberMe" value="1" checked=""> <label for="loginform-rememberme">下次自动登录</label></div>
                <div class="col-lg-8"><p class="help-block help-block-error"></p></div>
                </div>
                <div class="form-group">
                    <div class="col-lg-offset-1 col-lg-11">
                        <button type="submit" class="btn btn-primary" >登录</button>            </div>
                </div>

            </form>
          </div>
        </div> 
      </div>
    </div> <!-- /container -->
    <script src="./template/js/jquery.min.js"></script>
    <script src="./template/js/bootstrap.min.js"></script>
    <script src="./template/js/main.js"></script>
  </body>
</html>
